package com.briup.run.dao;


import com.briup.run.bean.Memberinfo;

import java.util.List;

/**
 * @Entity generator.bean.Memberinfo
 */
public interface MemberinfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Memberinfo record);

//    int insertSelective(Memberinfo record);

    Memberinfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Memberinfo record);

//    int updateByPrimaryKey(Memberinfo record);

    // 自定义方法
    // 根据昵称查用户
    Memberinfo selectMemberInfoByName(String nickname);

    long countOnLine();

    List<Memberinfo> beforeNumMemberInfo(int num);

    List<Memberinfo> selectTen();
}
